package com.sacc.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author 滚~韬
 * @date 2022/4/2 9:42
 * 用户地址信息
 */
@Data
@TableName(value = "addr_user")
public class AddrUser {
    @TableId(type = IdType.AUTO)
    private Integer id;//收获地址id
    @TableField("open_id")
    private String openId;//用户id
    @TableField("to_phone_number")
    private String toPhoneNumber;//收货人电话号码
    @TableField("address")
    private String address;//所在地区
    @TableField("deta_addr")
    private String detaAddr;//详细地址
    @TableField("to_name")
    private String toName;//收货人的姓名
    @TableField("is_default")
    private Integer isDefault;//是否是默认地址
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT,value = "create_time")
    private LocalDateTime createTime;
}
